import { IsInt, IsString ,IsNotEmpty, IsEmail} from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
export class RegisteByEmailDto {
    @ApiProperty()
    @IsEmail()
    @IsString()
    @IsNotEmpty({message:'email 不能为空'})
    readonly email: string;
    @ApiProperty()
    @IsString()
    @IsNotEmpty({message:'username 不能为空'})
    readonly username: string;
    @ApiProperty()
    @IsString()
    @IsNotEmpty({message:'code 不能为空'})
    readonly code: string;
    @ApiProperty()
    @IsString()
    @IsNotEmpty({message:'password 不能为空'})
    readonly password: string;
}
